import {defineStore} from "pinia";
import {Names} from "./store-name"
export const useTestStore = defineStore(Names.TEST,{
    state:()=> {
        return {
            current: 10,
            name: "小满",
            userIconColor:"#bfbfbf"
        }
    },
    //类似 computed修饰一些值
    getters:{

    },
    //methods 同步、异步，提交state
    actions:{
        setCurrent(num:number){
            this.current = num
        }
    }
})